cmake_minimum_required(VERSION 2.8)
project(TestQGLWidget)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5 COMPONENTS Core Widgets OpenGL REQUIRED)
find_package(OpenGL REQUIRED)
add_executable(${PROJECT_NAME} main.cpp MyGLWidget.cpp MyGLWidget.h)
target_link_libraries(${PROJECT_NAME} GL Qt5::Core Qt5::Widgets Qt5::OpenGL)
